package com.branches.threads;

public class Consumer implements Runnable {
    private Container container;

    public Consumer(Container container) {
        this.container = container;
    }

    @Override
    public void run() {
        while (true) {
            Product p = this.container.take();
        }
    }
}
